package com.gxuwz.zlc.service.impl;

import com.gxuwz.zlc.entity.LabTechnician;
import com.gxuwz.zlc.mapper.LabTechnicianMapper;
import com.gxuwz.zlc.service.LabTechnicianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LabTechnicianServiceImpl implements LabTechnicianService {

    @Autowired
    private LabTechnicianMapper labTechnicianMapper;

    @Override
    public List<LabTechnician> findLabTechnician() {
        return labTechnicianMapper.selectList(null);
    }

    @Override
    public LabTechnician findLabTechnicianById(String techId) {
        return labTechnicianMapper.selectById(techId);
    }

    @Override
    public void addLabTechnician(LabTechnician labTechnician) {
        labTechnicianMapper.insert(labTechnician);
    }

    @Override
    public void updateLabTechnician(LabTechnician labTechnician) {
        labTechnicianMapper.updateById(labTechnician);
    }

    @Override
    public void deleteLabTechnician(String techId) {
        labTechnicianMapper.deleteById(techId);
    }
}
